<%= header %>
<!--
Same as 13-interaction but load boomerang in an iframe
-->
<script>
if (BOOMR_test.supportsLoaderIframe()) {
	BOOMR_test.forceSnippetIframe();
}
</script>
<%= boomerangSnippet %>
<p>33-interaction-iframe loading...</p>
<script src="33-interaction-iframe.js" type="text/javascript"></script>
<script>
BOOMR_test.init({
	testAfterOnBeacon: true,
	Continuity: {
		enabled: true
	},
	onBoomerangLoaded: function() {
		try {
			// the event timestamp is set when the object is created
			var ev = document.createEvent("Event");
			ev.initEvent("keydown", true, true);
			ev.keyCode = 27;
		}
		catch (e) {
			window.cannotCreateMouseEvent = true;
		}

		// click
		window.ttfi = BOOMR.now();

		// dispatch event is synchronous. Wait 20ms between the event creation and dispatch
		BOOMR_test.busy(20);
		document.dispatchEvent(ev);

		setTimeout(function() {
			// click key again
			document.dispatchEvent(ev);
			document.dispatchEvent(ev);
		}, 250);
	}
});
</script>
<img src="/delay?delay=3000&amp;file=assets/img.jpg" width="200" height="10000" />
<%= footer %>
